TakeOffCommand

class TakeOffCommand(latitude: Double = 0.0, longitude: Double = 0.0, altitude: Double = 0.0, yaw: Double = Double.NaN, frame: MavlinkCommand.Frame = Frame.RELATIVE) : MavlinkCommand

MAVLink command which allows to take off.

Parameters

latitude

latitude of the implicitly added waypoint, in degrees.

longitude

longitude of the implicitly added waypoint, in degrees.

altitude

altitude of the implicitly added waypoint above take off point, in meters.

yaw

desired yaw angle at waypoint, relative to the North in degrees (clockwise). Pass Double.NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.).

frame

the reference frame of the coordinates.

Constructors

Link copied to clipboard
constructor(latitude: Double = 0.0, longitude: Double = 0.0, altitude: Double = 0.0, yaw: Double = Double.NaN, frame: MavlinkCommand.Frame = Frame.RELATIVE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Altitude of the implicitly added waypoint above take off point, in meters.

Link copied to clipboard
Link copied to clipboard

The coordinate frame; set to global coordinate frame or relative altitude over ground.

Link copied to clipboard

Latitude of the implicitly added waypoint, in degrees.

Link copied to clipboard

Longitude of the implicitly added waypoint, in degrees.

Link copied to clipboard

the raw parameters of the command

Link copied to clipboard

The MAVLink command type

Link copied to clipboard
val yaw: Double

Yaw angle at waypoint, relative to the North in degrees (clockwise).

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun write(writer: Writer, index: Int, frame: MavlinkCommand.Frame)

Writes the MAVLink command to the given writer.